export class AfFormatUtil {
  // 类静态方法， 类直接访问
  static formatJson(json: string): string {
    let result = json;
    try {
      result = JSON.stringify(JSON.parse(json), null, 4);
    } catch (e) {
      console.error('Error parsing json', e);
      return result;
    }
    return result;
  }

  //   static formatDate(date: Date, format: string): string {
  //     let result = '';
  //     const day = date.getDate();
  //     const month = date.getMonth() + 1;
  //     const year = date.getFullYear();
  //     const hours = date.getHours();
  //     const minutes = date.getMinutes();
  //     const seconds = date.getSeconds();
  //     const milliseconds = date.getMilliseconds();
  //   }
}
